package com.dailyblue.java.project.oa.commons.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dailyblue.java.project.oa.commons.bean.Department;
import com.dailyblue.java.project.oa.commons.mapper.DepartmentMapper;
import com.dailyblue.java.project.oa.commons.service.DepartmentService;
import com.dailyblue.java.project.oa.commons.util.JsonResult;
import com.dailyblue.java.project.oa.commons.util.ResultTool;
import org.springframework.stereotype.Service;

@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {
    @Override
    public JsonResult find() {
        return ResultTool.success(list());
    }
}
